<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<link rel="stylesheet" href="__VIEW__/css/style.css" />
		<script>
			var showCart = "{|U:'Cart/ajaxGoods'}";
			var app = "{|U:'Details/index'}";
			var delCart = "{|U:'Cart/delCart'}";
			var root = "__ROOT__/";
		</script>
		<link rel="stylesheet" href="__STATIC__/css/hdjs.css" />
		<link rel="stylesheet" href="__VIEW__/css/commonjs.css" />
		<script src="__STATIC__/js/jquery-1.7.2.min.js"></script>
		<script src="__STATIC__/js/common.js"></script>
		<script src="__VIEW__/js/showCart.js"></script>
		<script type="text/javascript">
			$(function(){
				$('.category').hover(function(){
					$(this).find('.categoryLeft').css({'background':'#B81B22'});
					$(this).find('.categoryRight').css({'background':'#F7F7F7'});
					$(this).find('.categoryLeft a').css({'color':'white'});
				},function(){
					$(this).find('.categoryLeft').css({'background':'white'});
					$(this).find('.categoryRight').css({'background':'white'});
					$(this).find('.categoryLeft a').css({'color':'#333'});
				})
			})
		</script>
		<link rel="stylesheet" href="__VIEW__/css/list.css" />
		
		<title>列表页</title>
		<style type="text/css">
			.nothot{
				color:#666 !important;
			}
			.hd-page .count,.nowPage{
				color:#BC1B22;
			}
			.hd-page .selfpage,.hd-page .pagebt{
				border:1px solid #BC1B22 !important;
				background: #BC1B22 !important;
			}
		</style>
	</head>
	
	<body>
		<!--头部开始-->
		<include file="__VIEW__/Public/head.html" /> 
		<!-- 头部结束  -->
		<!-- 列表页开始 -->
		<div id="content">
			<!--//面包屑导航-->
			<div class="breadBist">
				<div class="left">
					<span>当前位置：</span>
					<a href="{|U:'List/index'}">所有分类</a> >
					<list from="$mbx" name='$mv' >
						<if value="$hd.list.mv.last">	
							<span style="color:#B81B22;">{$mv.cname}</span>
						<else/>
							<a href="{|U:'List/index',array('cid'=>$mv['cid'])}">{$mv.cname}</a> >
						</if>
					</list>
				</div>
				<div class="right">
					<span>找到相关商品<span class="pcount">{$count}</span>款
					</span>
				</div>
			</div>
			<!--尺码选择-->
			<div class="selectSize">
				<!--尺码选择区-->
				<div class="typearea">
					<!--分类名-->
					<?php $tmp = $param ?>
					<foreach from="$attrlist" key="$k" value="$v">
					<div class="category">
						<div class="categoryLeft">
							<a href="javascript:;">{$v.name}</a>
						</div>
						<div class="categoryRight">
							<ul>
								<!--先保存到一临时变量中这样就不会被下面的foreach覆盖-->
								<?php $param = $tmp ?>
								<?php 
										$param[$k]=0;
										$tmp2 =$param;
									?>
								
								<li><a href="__CONTROLLER__/index/cid/{$hd.get.cid}/param/<?php echo implode('_',$tmp2) ?>" <if value="$tmp[$k]==0">class="select"</if>>不限</a></li>
								<foreach from="$v['value']" key="$kk" value="$vv">
								<?php $param[$k] = $vv['attid'] ?>
								<li>
									<a <if value="$tmp[$k]==$vv['attid']">class="select"</if> href="__CONTROLLER__/index/cid/{$hd.get.cid}/param/<?php echo implode('_',$param)?>">{$vv.attr_value}</a>
								</li>
								</foreach>
							</ul>
						</div>
					</div>
					</foreach>
					<!--分类名结束-->
				</div>
				<!--尺码选择区结束-->
			</div>
			<!--尺码选择结束-->
			<!--列表头部-->
			<div class="productTitle">
				<div class="wrapTitle">
						<div class="title">
							<a href="{|U:'List/index',array('cid'=>$hd['get']['cid'])}">全部商品</a>
						</div>
						<!--小分页-->
						<div class="titlePage">
							{$page2}
						</div>
				</div>
				<!--小分页结束-->
				<!--筛选按钮-->
				<div class="selectArea">
					<!--筛选按钮-->
					<div class="selectBtn">
						<ul>
							<li>
								<a href="{|U:'index',array('cid'=>$hd['get']['cid'],'param'=>$hd['get']['param'])}" title="默认由高到低">
									默认
									<span class="upArrow"></span>
								</a></li>
							<li><a href="" title="销量由高到低">
									销量
									<span class="upArrow"></span>
								</a></li></li>
							<!--<li><a href="" title="好评由高到低">
									好评
									<span class="upArrow"></span>
								</a></li></li>-->
							<li>
								<if value="!$hd['get']['param']">
									<a href="{|U:'index',array('cid'=>$hd['get']['cid'],'isnew'=>1)}" title="添加日期由高到低">
									最新
									<span class="downArrow"></span>
									<else/>
									<a href="{|U:'index',array('cid'=>$hd['get']['cid'],'param'=>$hd['get']['param'],'isnew'=>1)}" title="添加日期由高到低">
									最新
									<span class="downArrow"></span>
								</if>
								
								</a></li></li>
							<li>
								<if value="!$hd['get']['param']">
									<a href="{|U:'index',array('cid'=>$hd['get']['cid'],'pricehight'=>1)}" title="价格由高到低">
									价格
									<span class="upArrow"></span>
									</a>
									<else/>
									<a href="{|U:'index',array('cid'=>$hd['get']['cid'],'param'=>$hd['get']['param'],'pricehight'=>1)}" title="价格由高到低">
									价格
									<span class="upArrow"></span>
								</a>
								</if>
								<if value="!$hd['get']['param']">
									<li><a href="{|U:'index',array('cid'=>$hd['get']['cid'],'pricelowe'=>1)}" title="价格由低到高">
									价格
									<span class="downArrow"></span>
									</a></li></li>
									</a>
									<else/>
									<li><a href="{|U:'index',array('cid'=>$hd['get']['cid'],'param'=>$hd['get']['param'],'pricelowe'=>1)}" title="价格由低到高">
									价格
									<span class="downArrow"></span>
								</a></li></li>
								</a>
								</if>
							
						</div>
						<!--价格输入框-->
						<!--<div class="priceInput">
							<input type="text" name="goPrice" class="goPrice price" />—<input type="text" name="toPrice" class="toPrice price" />
							
							<p style="float:right;margin-left:10px;">
							<a href="javascript:;" class="hd-btn hd-btn-success hd-btn-xm" style="margin: 0;">确定</a>&nbsp;&nbsp;&nbsp;<a href="javascript:;" class="hd-btn hd-btn-danger hd-btn-xm" style="margin: 0;">清除</a>
							</p>
						</div>-->
						<!--价格输入框结束-->
						<!--合并同款-->
						<div class="meger">
							<a href="">
								&nbsp;
							</a>
						</div>
						<!--合并同款结束-->
						
					</div>
					<!--筛选按钮结束-->
					
					</div>
				<!--筛选按钮结束-->
				<!--商品列表-->
				<div class="proList" >
					<if value="!empty($goods)">
					<foreach from="$goods" key="$key" value="$g">
					
					<div class="product">
						
						<!--图片展示-->
						<div class="proImg">
							<a href="__MODULE__/Details/index/gid/{$g.gid}" class="imgLink">
								<span class="newTag"></span>
								<img src="__ROOT__/{$g.goods_listimg}" alt="" width="228" height="228" />
							</a>
						</div>
						<!--商品标题-->
						<h3 class="proTitle" style="margin-top:10px;">
							<a href="__MODULE__/Details/index/gid/{$g.gid}">{$g.goods_name}</a>
						</h3>
						<!--商品标题结束-->
						<!--商品价格-->
						<div class="proPrice">
							<span>售价:{$g.shop_price}</span>
						</div>
						<!--商品价格结束-->
						<!-- 左边详细信息 -->
						<div class="goodsdesc <if value="($key+1)%5==0">right<else />left</if>">
							<!--箭头-->
							<span class="leftArrow <if value="($key+1)%5==0">aright<else />aleft</if>"></span>
							<div class="goodsimg">
								<a href="__MODULE__/Details/index/gid/{$g.gid}"><img width="272" height="272" src="__ROOT__/{$g.goods_listimg}" alt="" /></a>
							</div>
							<h3 class="goodstitle">
								{$g.goods_name}
							</h3>
							<p class="sn">
								产品货号:{$g.goods_sn}
							</p>
							<div class="money">
								<p class="money1">售价:{$g.shop_price}</p>
								<p class="goodscomm">好评率<br /><strong>100%</strong></p>
							</div>
						</div>
						<!-- 左边详细信息结束 -->
					</div>
					</foreach>
						
				</div>
				<!--商品列表-->
				<div class="clearfix"></div>
				<!--分页开始-->
				<div class="hd-page">
					{$page}
				</div>
				<!--分页结束-->
			</div>
					<else/>
					<div style="font-size:17px;text-align: center;color:#666;padding:50px 0;">目前没有商品~!</div>
				
			</if>
			<!--列表头部结束-->
			
		</div>
		<!-- 列表页结束-->

		<!-- 页脚开始 -->
		<div class="clearfix"></div>
		<include file="__VIEW__/Public/foot.html" />
		</div>
		<!-- 页脚结束 -->

	</body>

</html>